
import store from '../store'
import jwt from "jwt-decode"

export function initProject() {
    

    if (localStorage.getItem("wedding")) {
        store.commit("loginModule/setUser", {
            username: jwt(localStorage.getItem("wedding")).username,
            token: localStorage.getItem("wedding")
        })
    }
}